<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>${product.name}</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<link href="../../resources/css/normalize.css" rel="stylesheet" type="text/css" />
	<link href="../../resources/css/lib.css" rel="stylesheet" type="text/css" />
	<link href="../../resources/css/style.css" rel="stylesheet" type="text/css" />
	<script src="../../resources/jquery/1.6/jquery.js"></script>
	<script src="../../resources/scripts/regionUtil.js"></script>
	<script src="../../resources/scripts/categoryUtil.js"></script>
</head>
<body>
    <div id="bodyWrapper">
        <div id="bodyWrapperHeader"></div>
        <div class="box4 f12">
		<div class="box5" id="loginArea" style="display: none;">
    	<form method="post" action="../../login">
	    	用户名:
	    	<input name="username" />
	    	密码: 
	    	<input type="password" name="password" />
	    	<input type="submit" value="登陆" />
	    	<input type="button" value="注册" onclick="document.location.href='../../register'" />
	    </form>
    	</div>
    	<div class="box5" align="right" id="loggedInArea" style="display: none;">
    		<a href="../../member/memberCenter">个人中心</a>
    		<a href="../../logout">退出登陆</a>
    	</div>
    	</div>
        <div class="box3 mb10">
            <img src="../../resources/images/2058957-beijing.gif" width="966px" />
        </div>
        <div class="box3">
            <div class="nav-menu" align="right">
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">行业动态</a></li>
                    <li><a href="#">媒体银行</a></li>
                    <li><a href="#">公司大全</a></li>
                    <li><a href="#">招商合作</a></li>
                    <li><a href="#">产品供求</a></li>
                    <li><a href="#">580服务</a></li>
                    <li><a href="#">行业人才</a></li>
                    <li><a href="#">传媒学院</a></li>
                </ul>
            </div>
        </div>
        <div class="two-column-layout auto">
            <div class="left">
                <p class="f14 b lh16">${product.name}</p>
                <div id="contentwrapper">
                    <div class="t" id="contentcolumn">
                        <table class="prod-detail-tbl f12">
                            <tr>
                                <td>价格:</td>
                                <td>${product.price!""}/${product.unit!""}</td>
                            </tr>
                            <tr>
                                <td>所在区域:</td>
                                <td><span id="region">${product.regionId!""}</span></td>
                            </tr>
                            <tr>
                                <td>发布日期:</td>
                                <td>${product.sDateCreated!""}</td>
                            </tr>
                            <tr>
                                <td>媒体类型:</td>
                                <td><span id="category">${product.categoryId!""}</span></td>
                            </tr>
                            <tr>
                                <td>阅读次数:</td>
                                <td><span id="viewCount"></span></td>
                            </tr>
                            <tr>
                                <td>上次阅读:</td>
                                <td><span id="lastViewTime"></span></td>
                            </tr>
                        </table>
                        <div class="bid-box">马上洽谈: 15800214789</div>
                    </div>
                    
                </div>
                <div id="leftcolumn">
                    <div class="prod-img-box"><img class="prod-detail-img" src="../../upload/images/${product.bigImage!""}" /></div>
                </div>
                <div class="cl"></div>
                <div class="tabs">
                    <ul>
                        <li class="active"><a href="#"><span>详细信息</span></a></li>
                        <li><a href="#"><span>交易说明</span></a></li>
                        <li><a href="#"><span>免责声明</span></a></li>
                    </ul>
                </div>
                <div id="" class="pt10 box7">
                    <table class="table-style2">
                    <#list product.productDetails as pd>
                        <tr>
                            <td width="35%">${pd.categoryAttr.attrName!""}:</td>
                            <td width="65%">${pd.attrValue!""}</td>
                        </tr>
                    </#list>
                    </table><br />
                    <div style="">${product.description!""}</div>
                </div>
            </div>
            <div class="right">
                <div class="box1 bg1">
                	<div class="title1 f12 b">媒体主资料</div>
                	<div class="box6">
                		<table class="table-style2">
                			<tr>
                				<td width="30%">公司名称:</td>
                				<td width="70%">${member.name!""}</td>
                			</tr>
                			<tr>
                				<td>所在区域:</td>
                				<td>${member.region.name}</td>
                			</tr>
                			<tr>
                				<td>联系地址:</td>
                				<td>${member.address!""}</td>
                			</tr>
                			<tr>
                				<td>邮政编码:</td>
                				<td>${member.postCode!""}</td>
                			</tr>
                			<tr>
                				<td>公司类型:</td>
                				<td>${member.type!""}</td>
                			</tr>
                			<tr>
                				<td>网站:</td>
                				<td>${member.website!""}</td>
                			</tr>
                			<tr>
                				<td>主营业务:</td>
                				<td>${member.biz!""}</td>
                			</tr>
                		</table>
                	</div>
                </div>
            </div>
        </div>
		<div class="footer" align="center">
			<a href="#">关于我们</a> |
			<a href="#">会员帮助</a> |
			<a href="#">法律声明</a> |
			<a href="#">广告服务</a> |
			<a href="#">资源联盟</a> |
			<a href="#">业务委托</a> |
			<a href="#">联系我们</a> |
			<a href="#">人才加盟</a><br/>
			服务电话:021-36360661 36360662 36360663<br />
			版权所有 广告传媒网门户<br />
			沪ICP备11011732号-2<br />
			运营商：上海宏深网络科技有限公司<br /> 
			Copyright © 2001-2010 All Right Reserved
		</div>
    </div>
</body>
</html>
<script>
	$(document).ready(function(){
		$.ajax({
			url: '../../vc?entityId=${product.id}&module=product&t=' + new Date(),
			dataType: 'json',
			success: function(data){
				$('#viewCount').html(data.count);
				$('#lastViewTime').html(data.sLastDate);
			}
		});
		$.ajax({
			url: '../../checkLogin?t=' + new Date,
			//dataType: 'json',
			success: function(data){
				if(data=='yes'){
					$('#loggedInArea').show();
				}
				else{
					$('#loginArea').show();
				}
			},
			failure: function(){
				alert('failed');
			}
		});
		var regionId = $('#region').text();
		if(regionId!=null&&regionId!=''){
			$('#region').text(RegionUtil.getPath(regionId));
		}
		
		var categoryId = $('#category').text();
		if(categoryId!=null&&categoryId!=''){
			$('#category').text(CategoryUtil.getItem(categoryId).name);
		}
		
	});
</script>